package drone.basis.validate ;

import javax.validation.ConstraintValidator ;
import javax.validation.ConstraintValidatorContext ;

import drone.basis.annotaion.Country ;
import drone.basis.dictionary.CountryDict ;

public class CountryValidate implements ConstraintValidator < Country , String >
{

	@Override
	public boolean isValid (
			String value ,
			ConstraintValidatorContext constraintValidatorContext
	)
	{
		if ( CountryDict.exist ( value ) )
		{
			return true ;
		}
		return false ;
	}

}
